package com.itjeima.ArrayList;

import java.util.ArrayList;

public class Demo2ArrayList {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("abc");
        list.add("111");
        list.add("222");

        list.add("柳岩");

        list.remove("111");

        list.remove(1);

        list.set(0,"杨幂");

        int size = list.size();
        System.out.println("size = " + size);

        String s = list.get(1);
        System.out.println("s =m " + s);

        System.out.println("list = " + list);
    }
}
